package com.zhenmaitang.clinic_sys.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * 权限VO类 - 用于返回权限信息
 */
@Schema(description = "权限信息VO")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PermissionVo extends BaseVo {
    
    @Schema(description = "权限ID", example = "1")
    private Integer id;
    
    @Schema(description = "权限名称", example = "用户读取权限")
    private String name;
    
    @Schema(description = "权限代码", example = "USER_READ")
    private String code;
    
    @Schema(description = "资源类型", example = "USER")
    private String resource;
    
    @Schema(description = "操作类型", example = "READ")
    private String action;
    
    @Schema(description = "权限描述", example = "允许读取用户信息")
    private String description;

    @Schema(description = "是否生效", example = "1无效 0有效")
    private Integer enabled;

}